/*
 * eeprom.h
 *
 *  Created on: Oct 27, 2016
 *      Author: duan
 */

#ifndef SRC_EEPROM_H_
#define SRC_EEPROM_H_

#include "regs.h"
#include "xil_types.h"

typedef struct{
    void (* write_byte)(unsigned short addr, unsigned char dat);
    unsigned char (* read_byte)(unsigned short addr);
} EEPROM_IIC;

static u8 param_read_byte(u16 addr);
static void param_write_byte(u16 addr, u8 data);

void set_param_remote(u16 addr,u8 FusionParams[64]);
void get_param_remote(u16 addr,u8 FusionParams[64]);

extern EEPROM_IIC eeprom;

#endif /* SRC_EEPROM_H_ */
